import java.io.*;

/**
 * @作者: xiaoxun
 * @日期: 2025/3/11 18:38
 * @描述:  文件字符输出流
 */
public class FileWriterDemo {
	public static void main(String[] args) throws IOException {
		FileWriter fw=new FileWriter("Day10/src/writer.txt",true);
		fw.write(97);
		fw.write("你好，java");
		String str="Java：从入门到实践的学习历程与思考";
		fw.write(str);
		fw.write("\r\n");
		fw.flush();//刷新
		fw.close();
		System.out.println("写入成功");

	}
}
